<template>
  <div class="u-m-t-24">
    <u-notice-bar
      border-radius="8"
      :duration="4000"
      :list="list"
    ></u-notice-bar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      list: [],
    }
  },
  mounted() {
    this.getList()
  },
  methods: {
    async getList() {
      let Notice = new wx.BaaS.TableObject("notice")
      const res = await Notice.orderBy(["-created_at"]).find()
      this.list = res.data.objects.map((item) => item.content)
    },
  },
}
</script>

<style></style>
